package com.work.libtest2.entity;

import lombok.Data;

/**
 * ClassName: R
 * Package: com.itheima.controller.util
 * Description:
 *
 * @Author
 * @Create 2023/11/1 20:22
 * @Version 1.0
 */
@Data
public class R {
    private boolean flag;
    private Object data;
    private String msg;

    public R() {
    }

    public R(boolean flag) {
        this.flag = flag;
    }

    public R(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }
    public R(boolean flag, String msg){
        this.flag=flag;
        this.msg=msg;
    }
    public R(String msg){
        this.msg=msg;
    }
}
